home *** CD-ROM | disk | FTP | other *** search
-
- XR v1.14 - X10 Report Program
- Copyright (c) 1991 by Adrienne Cousins
- All Rights Reserved
-
- VersaWare
- 30 Jennifer Street, Littleton, MA 01460
- 508-486-9351 (Voice 9am-4pm Eastern)
- 508-486-8507 (24 hour Support BBS)
-
-
- This program provides a couple of simple functions for the X10 that I have
- been unable to find in any other X10 program, and have found very useful
- while connecting and reprogramming my X10 computer interface.
-
- The most useful function is the STATUS report (-S) which requests the
- X10 to return an actual list of currently programmed events.
- XR will translate the data returned from the X10 into an english format
- report using the same "tokens" as the XA program. This report will
- show ALL events that are programmed in the X10 (many X10 control programs
- do not clear prior events before programming new ones), and will also
- show actual times that were calculated by "tokens" such as SUNRISE and
- SUNSET.
-
- The other useful function is the WATCH function (-W) which monitors the
- serial port for data received from the X10. Anytime a rocker switch is
- pressed, or a programmed event occurs, the X10 sends a data packet to
- the PC describing the event that just occurred. If XR is running in
- WATCH mode when this happens, the event is described on screen using the
- same english "tokens" used by the XA program.
-
- All output from XR can be redirected to any standard output device or
- disk file.
-
- -----------------------------------------
-
- XR command syntax & functions:
-
- XR [<cmd>][,<cmd>][,<cmd>] [>>outfile]
-
- Where <cmd> can be any of the following switches.
-
- ? Print a short help text to the screen
-
- -A Echo all X10 I/O to the screen in ascii
- Causes all data sent to or received from the X10 to be echoed to
- the screen in ascii. This can also be redirected to any standard
- output device or file.
-
- -Bn Set baud rate of serial port (300-19200)
- Causes the serial port to be set to the specified speed.
- If this switch is not specified, XR will use the serial port at
- the currently initialized speed.
- This is so that XR can also be used with X10s attached via Lawns.
-
- XR -B600,-W
-
- -H Echo all X10 I/O to the screen in hexadecimal
- Causes all data sent to or received from the X10 to be echoed to
- the screen as hexadecimal bytes. This data can also be redirected
- to any standard output device or file.
-
- XR -H,-W
-
- -Pn Serial port that X10 is connected to (1-4)
- Use this switch to specify a serial port other the default of COM1.
- Multiple -P switches may appear on the line, to send commands to
- multiple serial ports in a single command.
-
- XR -P1,-S,-P2,-S
-
- -S Display status of all events in the X10
- Causes the X10 to be queried for a list of all events currently
- programmed. The data will be translated into english "tokens"
- and displayed on the screen. This report can also be redirected
- to any standard output device or file.
-
- XR -S >X10STS.LOG
-
- -Tf:l Change X10 timeout tick counts (first:last)
- The value called FIRST, is the timeout in ticks until the first
- byte is received from the X10. The value called LAST, is the
- timeout in ticks after the last byte is received from the X10.
- FIRST defaults to 36 (2 secs), and LAST defaults to 18 (1 sec).
-
- -W Watch for any data received from the X10
- This monitors the serial port for any data received from the X10.
- It may be used in conjunction with the -A and -H echo switches.
- This mode is terminated on any keystroke.
-
- XR -H,-W
-
- -----------------------------------------------------------
-
- A list of the tokens used by XR are as follows:
-
- HOUSE, NORMAL, SECURITY
- TODAY, TOMORROW, EVERYDAY, WEEKENDS, WEEKDAYS
- MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY
- TIME, UNIT, LEVEL, ON, OFF, DIM, An-Pn
-
- A sample status report follows:
-
- XR -S
- Status:1 TIME 6:52 pm MONDAY HOUSE A
- Event:0 NORMAL WEEKENDS TIME 4:00 am A8 Level:0 ON
- Event:1 NORMAL WEEKDAYS TIME 7:00 am A8 Level:0 ON
- Event:2 NORMAL EVERYDAY TIME 8:53 pm A2 Level:7 DIM
- Event:3 NORMAL EVERYDAY TIME 9:00 pm A2 Level:3 DIM
- Event:4 NORMAL EVERYDAY TIME 12:00 am A2 Level:0 OFF
- Event:5 NORMAL EVERYDAY TIME 8:53 pm A3 Level:7 DIM
- Event:6 NORMAL EVERYDAY TIME 10:00 pm A3 Level:11 DIM
- Event:7 NORMAL EVERYDAY TIME 4:49 am A3 Level:0 OFF
-
- A sample WATCH session with HEX echo enabled follows:
-
- XR -H,-W
- Press any key to exit Watch mode
- <R:FF FF FF FF FF FF 01 62 00 08 60 CA
- Status:1 ON A5
- <R:FF FF FF FF FF FF 01 63 00 08 60 CB
- Status:1 OFF A5
-
-
-